package com.ruoyi.common.core.utils.bean;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

public class JSONUtil {
    public static JsonNode ObjectToJsonNode(Object o) {
        ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.valueToTree(o);
    }
}
